package com.sample.Service;

import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import android.util.Log;
import android.widget.Toast;

public class ServiceTest extends Service {
	LocalBinder binder;
	@Override
	 public void onCreate(){
	binder=new LocalBinder();	
	}
	public void onStart(Intent intent, int startId){
	    Log.d("debug", "test2");	
		Toast.makeText(this, "Service Started", Toast.LENGTH_LONG).show();
		}
	public void onDestroy(){
		}
	public IBinder onBind(Intent intent) {
		return (binder);
	}
	
	public class LocalBinder extends Binder{
	ServiceTest getService(){
	return (ServiceTest.this);	
	}
	
	}
	
}
